package com.cqut.forum.aspect.imp;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import com.cqut.forum.aspect.ExceptionAspect;

/**
 * 异常拦截切面接口实现类
 * @author yangxun
 */
@Aspect
@Component
public class ExceptionAspectImp implements ExceptionAspect{

	/**
	 * 方法调用
	 * @param method
	 * @param args
	 * @param target
	 * @param throwable
	 */
	@AfterThrowing("execution(* com.cqut.forum.service.imp.*.*(..))")
	public void InterceptorException() {
		System.out.println("==============异常拦截成功================");
	}
}
